<template>
<div>
  <div>
      <el-menu
          :default-active="activeIndex2"
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b">

        <el-menu-item index="1"><router-link to="/news"> <i class="el-icon-s-home"></i></router-link></el-menu-item>
        <el-menu-item index="2">处理中心</el-menu-item>
        <el-submenu index="3">
          <template slot="title">我的工作台</template>
          <el-menu-item index="2-1"><router-link to="/news/snews"> 单个分类</router-link></el-menu-item>
          <el-menu-item index="2-2"><router-link to="/news/dnews">批量分类</router-link></el-menu-item>

        </el-submenu>
        <el-menu-item index="3" disabled>消息中心</el-menu-item>
      </el-menu>
  </div>
  <div>
    <router-view></router-view>
  </div>
</div>
</template>

<script>
let ls=sessionStorage.getItem("nihao")

export default {
  name: "News",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {

    }
  }

}
</script>

<style scoped>

</style>